A=X, B=Y, C=XY, D=XX.